package work.dao.impl;

import work.dao.GoodsDao;
import work.pojo.Goods;

import java.util.ArrayList;
import java.util.List;

public class GoodsDaoImpl implements GoodsDao {
    @Override
    public List<Goods> findNewGoods() {
        ArrayList<Goods> goods = new ArrayList<>();
        goods.add(new Goods());
        return goods;
    }

    @Override
    public List<Goods> findHotGoods() {
        ArrayList<Goods> goods = new ArrayList<>();
        goods.add(new Goods());
        return goods;
    }

    @Override
    public int countById(int id) {
        return 0;
    }

    @Override
    public List<Goods> findByPages(int cid) {
        ArrayList<Goods> goods = new ArrayList<>();
        goods.add(new Goods());
        return goods;
    }

    @Override
    public List<Goods> findBySale() {
        ArrayList<Goods> goods = new ArrayList<>();
        goods.add(new Goods());
        return goods;
    }

    @Override
    public Goods findById(int id) {
        return new Goods();
    }
}
